﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using NetFrame;
public class TestAReq : Request
{
    private int testInt;
    private long testLong;
    private string testString;

    public TestAReq(int testInt, long testLong, string testString)
    {
        this.testInt = testInt;
        this.testLong = testLong;
        this.testString = testString;
    }

    public override int GetProtocol()
    {
        return NetProtocols.TESTA;
    }

    public override void Serialize(DataStream writer)
    {
        base.Serialize(writer);
        writer.WriteSInt32(testInt);
        writer.WriteSInt64(testLong);
        writer.WriteString16(testString);
    }
}

public class TestAResp : Resp
{
    public int testInt;
    public long testLong;
    public string testString;
    public string cont;

    public override int GetProtocol()
    {
        return NetProtocols.TESTA;
    }

    public override void Deserialize(DataStream reader)
    {
        base.Deserialize(reader);
        testInt = reader.ReadSInt32();
        testLong = reader.ReadSInt64();
        testString = reader.ReadString16();
        cont = reader.ReadString16();
    }
}